package com.zhuojy.equity.mall.admin.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhuojy.equity.mall.admin.common.entity.po.THolidayPo;
import com.zhuojy.equity.mall.admin.common.entity.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface THolidayMapper extends BaseMapper<THolidayPo> {
    /**
     * 假期类型条查+分页
     */
    IPage<THolidayPo> findholidayPagination(@Param("tHoliday") THolidayPo tHoliday, Page page);

    /**
     * 假期表新增负责人动态下拉列表
     * @return
     */

    List<TUser> findOptions();

    /**
     * 多表删除
     * @param id
     */
    void deleteHoliday(Integer id);
}
